package com.bana.fvs.app.mvp.contract;

import android.app.Activity;

import com.bana.fvs.app.module.detaile.entity.FoglightDetailInfo;
import com.bana.fvs.app.module.tab2.entity.ControlResultBean;
import com.bana.fvs.app.mvp.model.BaseModel;
import com.bana.fvs.app.mvp.presenter.BasePresenter;
import com.bana.fvs.app.mvp.view.IBaseView;
import com.wei.commonlibrary.net.OkhttpRequest;

import java.util.List;

/**
 * Created by wei on 2018/4/1.
 */

public interface FogLampListContract {
    abstract class AbsFogLampModel extends BaseModel {

        /**
         * 获取雾灯列表
         *
         * @param token
         * @return
         */
        public abstract OkhttpRequest getFogLampList(String token, String kzqbm, int pagenum, int pageSize);

        public abstract OkhttpRequest http_controlLamp(String token, String sbbm, String kzcz);
    }

    abstract class AbsFoglightPresenter extends BasePresenter<AbsFogLampModel, IFogLampView> {
        /**
         * 获取雾灯列表
         *
         * @param activity
         * @param token
         * @param kzqbm
         * @param pagenum
         */
        public abstract void getFogLampList(Activity activity, String token, String kzqbm, int pagenum);

        /**
         * 修改雾灯状态
         *
         * @param activity
         * @param token
         * @param sbbm
         * @param kzcz
         */
        public abstract void http_controlLamp(Activity activity, String token, String sbbm, String kzcz);
    }

    interface IFogLampView extends IBaseView<List<FoglightDetailInfo>> {
        /**
         * 雾灯修改结果
         *
         * @param bean
         */
        void onControllerResult(ControlResultBean bean);
    }
}
